package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Car;
import cn.wolfcode.crm.domain.Dic;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Car entity);

    Car selectByPrimaryKey(Long id);

    List<Car> selectAll();

    int updateByPrimaryKey(Car entity);

    int query4Count(QueryObject qo);

    List<Dic> query4List(QueryObject qo);

    void updateByCarbrand(@Param("brandnmae") String brandnmae, @Param("ids") Long ids);

    Car selectByNumber(String number);

}